# -*- coding: utf-8 -*-
# @Time    : 2022/4/2 10:55
# @Author  : zyw
# @Email   : panda_kings@163.com
# @File    : development.py
from .default import Default


class DevConfig(Default):
    # 开启调试模式
    DEBUG = True
    SQLALCHEMY_DATABASE_URI = 'mysql://root:123@127.0.0.1:3306/p8_630'
    SQLALCHEMY_TRACK_MODIFICATIONS = True
    SQLALCHEMY_ECHO = True
    REDIS_HOST = "localhost"  # redis数据库地址
    REDIS_PORT =6379  # redis 端口号
    REDIS_DB = 3  # 数据库名
    REDIS_EXPIRE = 60*5  # redis 过期时间300秒
    # 钉钉登录相关配置
    DING_APP_ID = 'dingoajf8cqgyemqarekhr'
    DING_REDIRECT_URI = 'http://127.0.0.1:8080/dingding_back'
    DING_SECRET_KEY = 'Fcah25vIw-koApCVN0mGonFwT2nSze14cEe6Fre8i269LqMNvrAdku4HRI2Mu9VK'
